import http from "@/utils/http";
/**
 * @description: 登录-用户名密码
 * @data {*} account string 用户名或手机号  password string 密码
 * @return {*}
 */ 
export const loginAPI = ({account, password}) => {
  return http({
    url: "/login",
    method: "post",
    data: {
      account,
      password,
    },
  });
}

// 获取用户喜欢商品列表
export const getLikeListAPI = ({limit = 4}) => {
  return http({
    url:'/goods/relevant',
    params: {limit}
  })
}